package com.shujia.day03;

public class Code08Continue {
    public static void main(String[] args) {
        /*
            continue继续：
                当在for循环中，执行到continue时会退出当次循环，继续下一次循环

         */

        int num = 1;
        for (; num <= 10; num += 1) {
            if (num ==4 ){
                break;
            }
            System.out.println("num:" + num);
        }

        System.out.println("=================================");
        num = 1;
        for (; num <= 10; num += 1) {
            if (num ==4 ){
                continue;
            }
            System.out.println("num:" + num);
        }

    }
}
